/**
  ******************************************************************************
  * @file    main.h
  * @author  MCU Application Team
  * @brief   Header for main.c file.
  *          This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) AirM2M.
  * All rights reserved.</center></h2>
  *
  * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
	#include "air001xx_hal.h"
	#include "air001_Core_Board.h"
	#include "GenericTypeDefs.h"

	#include "all.h"
	
	#include "myiwdg.h"
	#include "tim3.h"
	#include "i2c.h"
	#include "tmf8801.h"
   	#include "morse.h"
 
//	#include "i2c.h"
//	#include "tmf8801.h" 

//	#include "tmf8801_2_i2c.h"
//	#include "tmf8801_2.h"

  #include "nd03_comm.h"
#include "nd03_dev.h"
#include "nd03_data.h"
#include "nd03_calib.h"
 #include "nd03_platform.h"
 
 #include "nd03_def.h"




	
	
void init_leds (void);
 void init_SW3 (void);
 void HAL_UART1_MspInit(UART_HandleTypeDef *huart);
  void HAL_UART2_MspInit(UART_HandleTypeDef *huart);
 void init_out (void); 
 void Opto_out (void);
  void init_HL (void);
   void   SUB_STOPMODE    (void);
   void my_Delay_100ms(unsigned int one_hundred_ms);
//#include "timer3.h"

/* Private includes ----------------------------------------------------------*/
/* Private defines -----------------------------------------------------------*/
#define myzxd    7

/* Exported variables prototypes ---------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

void SUB_ADC(void);

#define led_HIGH  		HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0,GPIO_PIN_SET);	   
#define led_LOW    		HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); 

#define Led_on          HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET);
#define Led_off         HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0,GPIO_PIN_SET);	  

	
 #define buz_on    			HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3,GPIO_PIN_SET);   
 #define buz_off    		HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3,GPIO_PIN_RESET);  




#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT AirM2M *****END OF FILE******************/
